{% extends 'qna/base.html' %}
{% load static %}

{% block head %}
<link href="{% static 'qna/css/question.css' %}" type="text/css" rel="stylesheet">
{% endblock %}

{% block title %}
Добавить ответ
{% endblock %}

{% block content %}
<div id="content">
    <div class="question">
        {% spaceless %}
        <div class="top">
            <p class="titel">{{ question.titel | safe }}</p>
            <p class="name">Создана: {{ question.name }}</p>
        </div>
        <p class="text">{{ question.question|safe }}</p>
        {% endspaceless %}
    </div>
    <br>
<form method="POST" class="post-form">{% csrf_token %}
    {{ form.media }}
    {{ form.as_p }}
    <button type="submit" class="save">Save</button>
</form>
</div>
{% endblock %}